package com.ganmiao.server.file.util;


import com.ganmiao.server.file.constant.AttachmentConstants;

/**
 * @Author zero.yin
 * @Date 2022/9/1 12:14
 * @Desc
 */
public class FileFormatUtils {

    //判断是否视频类型
    public static Boolean isVideoFile(String format) {
        return AttachmentConstants.videoFormatList.contains(format.toLowerCase());
    }

    //判断是否文档类型
    public static Boolean isDocFile(String format) {
        return AttachmentConstants.docFormatList.contains(format.toLowerCase());
    }

    //判断是否图片类型
    public static Boolean isPicFile(String format) {
        return AttachmentConstants.picFormatList.contains(format.toLowerCase());
    }

}
